#!/bin/sh
echo 编译程序
go build -ldflags "-s -w"
echo 安装程序
sudo cp unzipgo-gui /usr/local/bin/
mkdir -p /usr/share/icons/hicolor/256x256
sudo cp unzip-go.png /usr/share/icons/hicolor/256x256/
mkdir -p  /usr/share/applications
sudo cp unzip-go.desktop /usr/share/applications
xdg-mime default unzip-go.desktop application/zip

